package com.czy.workflow.core.annotation;

import org.springframework.stereotype.Component;

import java.lang.annotation.*;

/**
 * Created by admin on 2019/8/27.
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
@Component
public @interface TaskAfterMethod {

    /**
     * Name of executor
     * @return
     */
    String value() default "";

    /**
     * Code of flow
     * @return
     */
    String flowCode();

    /**
     * Code of node
     * @return
     */
    String nodeCode();

    /**
     * Alias of option parameter name
     * @return
     */
    String optionAlias() default "option";

    /**
     * Alias of taskId parameter name
     * @return
     */
    String taskIdAlias() default "taskId";

    /**
     * Alias of nodeId parameter name
     * @return
     */
    String nodeIdAlias() default "nodeId";

    /*
        extend:
        节点作用范围
     */
}
